package main
import "fmt"
func main(){
	var a,b int
	var fuhao byte
	a = 20
	b = 4
	fuhao = '+'
	fmt.Printf("%d %c %d = %d\n", a, fuhao, b, jisuan(a, b, fuhao))
}

func jisuan(a int, b int, fuhao byte)(int){
	var rt int
	switch fuhao{
		case '+':
		{
			rt = a + b
		}
		case '-':
		{
			rt = a - b
		}
		case '*':
		{
			rt = a * b
		}
		case '/':
		{
			rt = a * b
		}
	}
	return rt
}
